package com.pig4cloud.pigx.common.customize.contants;

import java.util.Arrays;
import java.util.List;

/**
 * 通用属性名称常量类
 *
 * @since 2022/8/14 16:40
 */
public interface CommonFieldNameConstants {
	/**
	 * id
	 */
	String ID = "id";
	/**
	 * createBy
	 */
	String CREATE_BY = "createBy";
	/**
	 * createTime
	 */
	String CREATE_TIME = "createTime";
	/**
	 * updateBy
	 */
	String UPDATE_BY = "updateBy";
	/**
	 * updateTime
	 */
	String UPDATE_TIME = "updateTime";
	/**
	 * status
	 */
	String STATUS = "status";
	/**
	 * isDeleted
	 */
	String IS_DELETED = "isDeleted";
	/**
	 * serialVersionUID
	 */
	String SERIAL_VERSION_UID = "serialVersionUID";

	/**
	 * 新增需要初始化的字段
	 */
	List<String> INSERT_ABOUT_FIELD = Arrays.asList(CommonFieldNameConstants.ID,
			CommonFieldNameConstants.CREATE_BY,
			CommonFieldNameConstants.CREATE_TIME,
			CommonFieldNameConstants.UPDATE_BY,
			CommonFieldNameConstants.UPDATE_TIME,
			CommonFieldNameConstants.STATUS,
			CommonFieldNameConstants.IS_DELETED);

	/**
	 * 修改需要初始化的字段
	 */
	List<String> UPDATE_ABOUT_FIELD = Arrays.asList(CommonFieldNameConstants.UPDATE_BY,
			CommonFieldNameConstants.UPDATE_TIME);
}
